package com.rongke.lequ.ui.activity.presenter

import android.os.CountDownTimer
import com.rongke.baselibrary.base.BasePresenter
import com.rongke.lequ.ui.activity.SplashActivity
import com.rongke.lequ.util.UIHelper

/**
 * Created by jh352160 on 2018/5/23.
 */
class SplashPresenter : BasePresenter<SplashActivity>(){
    fun startCountDown() {
        object : CountDownTimer(2000, 2000) {
            override fun onTick(millisUntilFinished: Long) {}
            override fun onFinish() {
                UIHelper.gotoLoginActivity(mContext)
                mView.finish()
            }
        }.start()
    }
}
